package com.songlin.houxin.admin.api.converter;


import com.songlin.houxin.admin.api.dto.EnterprisesAddDTO;
import com.songlin.houxin.admin.api.dto.EnterprisesUpdateDTO;
import com.songlin.houxin.admin.api.entity.Enterprises;
import com.songlin.houxin.admin.api.vo.EnterprisesVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName EnterprisesConverter.java
 * @Description <p></p>
 * @createTime 2022-03-06 11:56:00
 */
@Mapper
public interface EnterprisesConverter {
    EnterprisesConverter INSTANCE = Mappers.getMapper(EnterprisesConverter.class);

    // @Mappings({
    //         @Mapping(target = "createBy", ignore = true),
    //         @Mapping(target = "createTime", ignore = true),
    //         @Mapping(target = "updateBy", ignore = true),
    //         @Mapping(target = "updateTime", ignore = true),
    // })
    // Enterprises toEnterprises(EnterprisesAddDTO dto);

    // /**
    //  * 修改企业转换类
    //  *
    //  * @param dto 入参信息
    //  * @return
    //  */
    // @Mappings({
    //         @Mapping(target = "createBy", ignore = true),
    //         @Mapping(target = "createTime", ignore = true),
    //         @Mapping(target = "updateBy", ignore = true),
    //         @Mapping(target = "updateTime", ignore = true),
    // })
    // Enterprises updateToEnterprises(EnterprisesUpdateDTO dto);

    EnterprisesVO toEnterprisesVO(Enterprises enterprises);

    List<EnterprisesVO> toEnterprisesVOList(List<Enterprises> dtos);

    Enterprises toEnterprises(EnterprisesAddDTO dto);

    Enterprises updateToEnterprises(EnterprisesUpdateDTO dto);
}
